<template>
  <div>
    <div class="red-bg"></div>
    <div class="white-bg">
      <div class="touxiang">
        <img src="../../../../static/images/shiming/touxiang.png" alt="">
      </div>
      <p class="name">
        {{userInfo.realName}}
      </p>
      <p class="bank-num">
        {{userInfo.cardNo}}
      </p>
      <div class="real-img">
        <img src="../../../../static/images/shiming/real_name.png" alt="">
      </div>
    </div>

    <div class="weui-cells">
      <!--<a href="javascript:;" class="weui-cell">-->
        <!--<div class="weui-cell__bd">-->
          <!--<p>认证时间</p>-->
        <!--</div>-->
        <!--<div class="weui-cell__ft">-->
          <!--{{userInfo.auditTime}}-->
        <!--</div>-->
      <!--</a>-->

      <router-link :to="{name:'idcardInfo'}" class="weui-cell weui-cell_access">
        <div class="weui-cell__bd">
          <p>身份信息</p>
        </div>
        <div class="weui-cell__ft">
        </div>
      </router-link>

      <router-link :to="{name:'bankInfo'}" class="weui-cell weui-cell_access">
        <div class="weui-cell__bd">
          <p>银行卡信息</p>
        </div>
        <div class="weui-cell__ft">
        </div>
      </router-link>

      <!--<a class="weui-cell weui-cell_access" href="javascript:;">-->
        <!--<div class="weui-cell__bd">-->
          <!--<p>店铺信息</p>-->
        <!--</div>-->
        <!--<div class="weui-cell__ft">申请开店</div>-->
      <!--</a>-->
    </div>

    <div class="warn">
      <img src="../../../../static/images/shiming/warn.png" alt="">
      <p>实名认证信息会被严格加密，仅供银行核实信息，平台不会以任何形式透漏给第三方，请放心填写</p>
    </div>

  </div>
</template>

<script>
  import {getUserIdCardMsg} from '../../../assets/js/getData';
  export default {
    name: "alreadyAut",
    data(){
      return {
        userInfo:{},

      }
    },
    created(){
      //获取用户实名认证信息
      getUserIdCardMsg().then(res => {
        if(res.data.reqResult.code>0){
          this.userInfo = res.data.data;
        }else {
          Toast(res.data.reqResult.msg);
        }
      })
    }

  }
</script>

<style scoped>
  .red-bg{
    width: 100%;
    height: 8.55rem;
    background-color: #C50000;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
  }
  .white-bg{
    width: 17.25rem;
    height: 8.05rem;
    background-color: #ffffff;
    border-radius: 5px;
    margin:4.3rem auto 0 auto;
    box-shadow: 0px 1px 5px 0px #ccc;
    padding-top: 2.35rem;
    position: relative;
  }
  .touxiang{
    width: 3.5rem;
    position: absolute;
    left: 50%;
    top: -1.75rem;
    transform: translateX(-50%);
    border-radius: 50%;
  }
  .touxiang img{
    width: 100%;
  }
  .name{
    font-size: 0.95rem;
    color: #1A1A1A;

    text-align: center;
  }
  .bank-num{
    margin-top: 0.7rem;
    font-size: 0.85rem;
    color: #999999;
    text-align: center;
  }
  .real-img{
    width: 3.25rem;
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
  }
  .real-img img{
    width: 100%;
  }
  .weui-cells{
    margin-top: 1.25rem;
  }
  .weui-cell{
    padding-top: 0.7rem;
    padding-bottom: 0.85rem;
  }
  .warn{
    display: flex;
    padding: 0.5rem 0.9rem 1rem 0.65rem;
    font-size: 0.6rem;
    color: #6F6F6F;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .warn img{
    margin-right: 0.25rem;
    margin-top: 0.1rem;
    width: 0.65rem;
    height: 0.65rem;
  }
</style>
